package com.github.polaris.common.util;

import com.github.polaris.common.constant.CommonConstant;
import org.apache.commons.lang3.StringUtils;
import org.junit.Test;

import java.util.Optional;

/**
 * @author chewh
 * @data 2018/3/7
 */
public class UserUtilTset {
    @Test
    public void getToken() {
        String authorization = null;
        System.out.println(StringUtils.substringAfter(authorization, CommonConstant.TOKEN_SPLIT));
    }

    @Test
    public void optionalTest() {
        Optional<String> optional = Optional.ofNullable("");
        System.out.println(optional.isPresent());
    }
}
